﻿using ProduceBasicData.Domain.Entities;

namespace ProduceBasicData.Domain.IncomingMaterialsManage
{
    /// <summary>
    /// 来料检验实体类，存储单次来料检验的记录（关联物料、检验方案及检验结果）
    /// </summary>
    public class IncomingInspection: BaseModel
    {
        /// <summary>
        /// 检验单号
        /// </summary>
        public string? InspectionNo { get; set; }

        /// <summary>
        /// 关联的检验方案ID（外键）
        /// </summary>
        public int InspectionSchemeId { get; set; }

        /// <summary>
        /// 关联的物料ID（外键）
        /// </summary>
        public int IncomingMaterialsId { get; set; }

        /// <summary>
        /// 物料总数
        /// </summary>
        public int TotalQuantity { get; set; }

        /// <summary>
        /// 检验结果
        /// </summary>
        public string? Result { get; set; }

        /// <summary>
        /// 检验状态（false=待检验，true=已完成）
        /// </summary>
        public bool State { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNo { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string? Supplier { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }
    }
}
